<?php

namespace App\Services;

class CourierCompany
{
    /**
     * 快递公司缓存
     * @return mixed
     */
    public static function getCourierCompanyByCache()
    {
        return \Cache::remember('courier_company', 86400, fn () => \App\Models\CourierCompany::query()->paginate(999)->toArray());
    }

    public static function forgetCourierCompanyCache()
    {
        return \Cache::forget('courier_company');
    }
}
